import { createStore } from "vuex";

const store = createStore({
  state: {
    token: "",
    userInfo: uni.getStorageSync("userInfo") || {},
    dataRow: {}
  },
  mutations: {
		setDataRow: (state, data) => {
			state.dataRow = data
		},
	},
  actions: {},
  getters: {
    userInfo: (state) => {
      return state.userInfo;
    },
    dataRow: (state) => {
      return state.dataRow;
    },
  },
});
export default store;
